package com.java.module.user.domain.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.java.common.lang.annotation.validator.Mobile;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 发送短信
 * 
 * @author zt
 */
@ApiModel(value = "发送短信请求")
public class SendSmsDTO {

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号", required = true, position = 1)
    @NotBlank(message = "手机号不能为空")
    @Mobile
    private String username;

    /**
     * 发送短信类型 0注册 1重置密码
     */
    @ApiModelProperty(value = "发送短信类型", required = true, position = 2)
    @NotNull(message = "发送短信类型不能为空")
    private Integer type;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "SendSmsDTO{" + "username='" + username + '\'' + ", type=" + type + '}';
    }

}